package us.kg.kotoriforest.spring.aop.calculator.impl;

import org.springframework.stereotype.Component;
import us.kg.kotoriforest.spring.aop.calculator.IntegerCalculator;

/**
 * @author Kotori rotroutine@163.com
 * @since 2025/1/27
 */
@Component
public class IntegerCalculatorImpl implements IntegerCalculator {
    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        return a * b;
    }

    @Override
    public int div(int a, int b) {
        return a / b;
    }
}
